import request from '../utils/request.js'
import MINI_PROGRAM_CONFIG from '../env'

// 评论
export function setComment(params) {
  return request({
    baseUrl: MINI_PROGRAM_CONFIG.BASE_URL,
    url: '/comment/comment',
    method: 'post',
    data: params
  })
}

// 获取评论列表
export function getCommentList(params) {
  return request({
    baseUrl: MINI_PROGRAM_CONFIG.BASE_URL,
    url: '/comment/page',
    method: 'post',
    data: params
  })
}

// 设置点赞
export function setThumb(params) {
  return request({
    baseUrl: MINI_PROGRAM_CONFIG.BASE_URL,
    url: '/comment/thumb',
    method: 'post',
    data: params
  })
}